module.exports = function(data) {
    return new Player(data);
};

var Player = function(data) {
    for (var p in data) {
        this[p] = data[p];
    }
};